package com.gym.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "gateway",path = "/course-provider",contextId = "course-provider")
public interface CourseClient {

    /**
     * 根据教练id删除课程
     * @param coachId 教练id
     * @return
     */
    @RequestMapping("/delCourseByCoachId")
    public boolean delCourseByCoachId(@RequestParam int coachId);

}
